package Homework;

public class Student {
	private String name;
	private int age;
	private String hobby;
	
	public String gender;
	public String addr;
	
	protected double heigh;
	String pwd;
	
	public String getHobby() {
		return hobby;
	}
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public double getHeigh() {
		return heigh;
	}
	public void setHeigh(double heigh) {
		this.heigh = heigh;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Student(String name, int age,String hobby) {
		super();
		this.name = name;
		this.age = age;
		this.hobby=hobby;
	}
	public Student() {
		super();
	}
	@Override
	public String toString() {
		return "学生姓名：" + name + ", 年龄：" + age+"，爱好是："+hobby;
	}
	
	public void info1() {
		System.out.println("这是公有的方法！");
	}
	
	protected void info2() {
		System.out.println("这是受保护的方法！");
	}
	
	void info3() {
		System.out.println("这是默认的方法！");
	}
}
